/**
 * Copyright By Nanjing Fujitsu Nanda Software Technology Co., Ltd
 * 上午10:19:57
 * CoreLocationService.java
 * 
 */
package com.fujitsu.nanjing.mobile.service;

import com.fujitsu.nanjing.mobile.dao.CoreLocationDao;
import com.fujitsu.nanjing.mobile.model.hibernate.CoreLocation;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

import javax.annotation.Resource;

/**
 * @author qixb.fnst
 * 
 */
@Service
@Transactional
public class CoreLocationService implements BaseService<CoreLocation> {
    @Resource
    private CoreLocationDao coreLocationDao;

    @Override
    public CoreLocation find(int id) {
        return coreLocationDao.query(CoreLocation.class, id);

    }

    @Override
    public CoreLocation modify(CoreLocation t) {
     return coreLocationDao.update(t);
    }

    @Override
    public void delete(CoreLocation t) {
      coreLocationDao.delete(t);

    }

    @Override
    public CoreLocation add(CoreLocation t) {
      return coreLocationDao.insert(t);
    }

    @Override
    public List<CoreLocation> find(String queryString) {
       return coreLocationDao.query(queryString);
    }

}
